﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDPAutodetect.Device;

namespace BDPAutodetect.Models
{
    /// <summary>
    /// 查询历史数据传输数据类
    /// </summary>
    public class QueryRecordDto
    {
        /// <summary>
        /// 工位类型
        /// </summary>
        public DeviceStationType StationType { get; set; }
        /// <summary>
        /// 查询起始日期
        /// </summary>
        public DateTime StartDateTime { get; set; }
        /// <summary>
        /// 查询截止日期
        /// </summary>
        public DateTime EndDateTime { get; set; }
        /// <summary>
        /// 0全部，1合格，2不合格
        /// </summary>
        public DetectResultStatus Status { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public QueryRecordDto()
        {
            this.StationType = DeviceStationType.Station1;
            this.StartDateTime = DateTime.Today;
            this.EndDateTime = DateTime.Now;
            this.Status = DetectResultStatus.None;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="argStationType">工位类型</param>
        public QueryRecordDto(DeviceStationType argStationType) : this()
        {
            this.StationType = argStationType;
        }
    }
}
